package avicit.bdp.dgs.metadata.dao;

import avicit.bdp.common.base.BaseDAO;
import avicit.bdp.common.service.dto.BdpTableDTO;
import avicit.bdp.dgs.metadata.dto.MetadataBusinessDto;
import avicit.bdp.dgs.metadata.vo.MetadataBusinessVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MetadataBusinessDao extends BaseDAO<MetadataBusinessDto> {

  List<MetadataBusinessDto> getBusinessList(
      @Param("tableId") String tableId, @Param("metadataVersion") String metadataVersion);

  int batchUpdateBusinessList(@Param("list") List<MetadataBusinessDto> businessModify);

  int batchInsertBusinessList(@Param("list") List<MetadataBusinessDto> businessModify);

  String getMetadataBusinessDetail(
      @Param("tableId") String tableId,
      @Param("attributeCode") String attributeCode,
      @Param("metadataVersion") String metadataVersion);

  List<MetadataBusinessVo> getMetadataBusinessAll(@Param("condList") List<BdpTableDTO> condList);
}
